/**
 * 匿名内部类
 */
class Test{
    public void test(){
        System.out.println("Test:: test()");
    }
}
public class TestDemo3 {
    public static void main(String[] args) {

        new Test(){
            @Override
            public void test() {
                System.out.println("重写的test()...");
            }
        }.test();
    }
}
